//导入request.js请求工具
import request from '@/utils/request.js'

//加入购物车

export const addCartService = (gid,number) => {
    return request.post('/cart/add?gid='+gid+'&number='+number)
}

export const getCartListService = () => {
    return request.get('/cart/list')
}

export const updateCartService = (id,number) => {
    return request.post('/cart/update?id='+id+'&number='+number)
    
}

export const deleteCartService = (id) => {
    return request.delete('/cart/delete?id='+id)
}
